package composite;


public class ActionMenuItem extends MenuComponent {
    private String name;

    public ActionMenuItem(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public void print(String space) {
        System.out.println(space + name);
    }
}
